//
//  CancelViewController.m
//  ICrEAM
//
//  Created by Leona on 2017/5/18.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "CancelViewController.h"

@interface CancelViewController ()

@end

@implementation CancelViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    NSArray *cleanCarDataArray = [ICrEAMTool getParameterArrayWithCode:ICMEnumIntToString(ICMEnumCancelType)];
    self.reasonTextField = [[ICrEAMTool getParameterTitleArrayWithArray:cleanCarDataArray] mutableCopy];
    //添加的是背景view，并不是自身的view
    [self.blankView addSubview:self.view];
}
- (UIView *)blankView{
    if (!_blankView) {
        _blankView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight)];
        _blankView.backgroundColor = [UIColor colorWithHex:BorderColor_Gray_Hex andAlpha:0.8];
        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideAllView)];
        [_blankView addGestureRecognizer:tap];
        
    }
    return _blankView;
}
-(void)hideAllView{
    [self.blankView removeFromSuperview];
}

@end
